package com.ktjiaoyu.t313.controller;

import com.ktjiaoyu.t313.pojo.SysRole;
import com.ktjiaoyu.t313.service.RoleService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping(value = "role")
public class RoleController {

    Logger logger = Logger.getLogger(RoleController.class);

    @Resource
    private RoleService roleService;

    /**
     * 查寻简单角色列表
     * @return
     */
    /*@GetMapping(value = "/simpleList",produces = {"application/json;charset=UTF-8"})
    @ResponseBody
    public Object getRoleList()throws Exception{
        List<SysRole> roleList = roleService.getRoleList();
        return JSONArray.toJSONString(roleList);
    }*/
}
